/**
 * Created by Administrator on 2017/3/31 0031.
 */
var PageMC={
    create:function () {
        var page={};
        page.ui=new PIXI.DisplayObjectContainer();
        var arr_texture=[];
        for(var i=0;i<119;i++)
        {
            if(i<10)
            {
                var texture = resource['assets/images/s1/S1__0000'+i.toString()+'.jpg'].texture;
            }
            else if(i<100)
            {
                var texture = resource['assets/images/s1/S1__000'+i.toString()+'.jpg'].texture;
            }
            else
            {
                var texture = resource['assets/images/s1/S1__00'+i.toString()+'.jpg'].texture;
            }

            arr_texture.push(texture);
        }
        var mc=new PIXI.extras.AnimatedSprite(arr_texture);
        mc.anchor.set(0.5);
        mc.animationSpeed=0.2;
        mc.loop=false;
        mc.width=pixiStageW;
        mc.height=pixiStageH;

        mc.x=pixiStageW/2;
        mc.y=pixiStageH/2;
        page.ui.addChild(mc);

        // var filter_blur=new PIXI.filters.BlurFilter(0)
        // filter_blur.blur=0;
        // var arr=[filter_blur];
        //
        // mc.filters=arr;



        mc.onComplete=function () {
            // var arr=[new PIXI.filters.BlurFilter()];
            // mc.filters=arr;
            // var ob={blur:0}
            // TweenMax.to(filter_blur,1,{blur:10,ease:Cubic.easeOut,onComplete:function () {
                var evt=new CustomEvent('Game_PageIn',{detail:'0'});
                document.dispatchEvent(evt);
            // }});
        }




        page.In=function () {
            mc.gotoAndPlay(1);
        }

        return page;
    }
}